<?php

/**
 * This a debug function. Allows a given IP to see the debug messages all over the system
 *
 * @access   public
 * @author   Svilen <svilen@svilen.com>
 *
 * @param    array   $allowed       Allowed IPs to see the debug messages
 *
 * @return   string                 Returns true if the current IP is in the list of allowed once
 *
 * @since    27-06-2005
 * @version  1.0
 *
 */
function debug_message ($allowed = array()) {
	$allowed = array_merge ($allowed, array ('213.222.51.214', '213.222.51.227', '213.222.51.246', '84.242.134.88'));
  
	if (in_array($_SERVER['REMOTE_ADDR'], $allowed)) {
  	return TRUE;
  }
  else {
  	return FALSE;
  }
}

?>